package com.jxm.base.operator;

/**
 * @Author: jxm
 * @Description: 测试位运算符：  与、或、异或、取反
 * @Date: 2022/9/22 17:05
 * @Version: 1.0
 */
public class Test1 {

    public static void main(String[] args) {
        int a = 3;
        int b = 4;
        //与
        System.out.println(3 & 4);
        //或
        System.out.println(3 | 4);
        //异或
        System.out.println(3 ^ 4);
        //取反
        System.out.println(~3);
    }
}
